package com.kun.controller;

import com.kun.entity.Dept;
import com.kun.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.client.RestTemplate;

@RestController
@RequestMapping("/dept")
public class DeptController {

    @Autowired
    private DeptService deptService;

    @GetMapping("/queryAllList")
    public Object queryAllList() {
        return deptService.queryAllList();
    }
}
